<template>
<!--    轮播图   开始总是引不进去，后来当做组件使用才能用了？  不知道为啥？-->
    <div class="about">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide" data-swiper-autoplay="5000"><img src="../assets/images/lubo1.png" alt="111"></div>
                <div class="swiper-slide" data-swiper-autoplay="5000"><img src="../assets/images/lubo2.png" alt="111"></div>
                <div class="swiper-slide" data-swiper-autoplay="5000"><img src="../assets/images/lubo3.png" alt="111"></div>
                <div class="swiper-slide" data-swiper-autoplay="5000"><img src="../assets/images/lubo2.png" alt="111"></div>
                <div class="swiper-slide" data-swiper-autoplay="5000"><img src="../assets/images/lubo1.png" alt="111"></div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>

            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>

        </div>
    </div>
</template>

<script>
    import Swiper from 'swiper'
    export default {
        name:'About',
        data(){
            return {
            }
        },
        mounted() {
          new Swiper ('.swiper-container', {
                // loop: true,// 循环模式选项
                // 如果需要分页器
                pagination: '.swiper-pagination',
                // 如果需要前进后退按钮
                nextButton: '.swiper-button-next',
                prevButton: '.swiper-button-prev',
                //如果需要自动切换海报
                autoplay: {
                    delay: 1000,//1秒切换一次
                },
            })
        }
    }
</script>

<style lang="less" scoped>
    .swiper-container{
        height: 400px;
        width: 1519px;
    }
    /*图片自适应*/
    .swiper-wrapper img{
        height: 100%;
        width: 100%;
    }
    /*底部小点*/
    /deep/.swiper-pagination-bullet{
        height: 10px;
        width: 10px;
    }
</style>